import { createApp } from "vue";
import ElementPlus from "element-plus";
// import "@/assets/styles/index.scss";
import "element-plus/dist/index.css";
import * as ElementPlusIconsVue from "@element-plus/icons-vue";
import { setupStore } from "./stroe";
import { setupRouter } from "./router";
import App from "./App.vue";

function bootstrap() {
  const app = createApp(App);
  setupStore(app);
  setupRouter(app);
  app.use(ElementPlus);

  for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component);
  }
  app.mount("#app");
}

bootstrap();
